<!DOCTYPE html>
<html lang="en" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
      xmlns:th="http://www.thymeleaf.org" th:fragment="header(title,keywords)">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/>
<meta name="renderer" content="webkit"/>
<meta name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta http-equiv="Cache-Control" content="no-transform"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="shortcut icon" th:href="@{/favicon.ico}"/>
<link rel="apple-touch-icon" th:href="@{/favicon.ico}"/>
<title>
    <th:block th:text="${title ?: '首页'}"></th:block>
</title>
<link th:href="@{/foreground/user/css/xcode.min.css}" rel="stylesheet"/>
<link th:href="@{/foreground/user/css/style.min.css}" rel="stylesheet"/>
<script th:src="@{/foreground/assets/js/jquery.min.js}"></script>
<script th:src="@{/foreground/assets/js/amazeui.min.js}"></script>
<link rel="stylesheet" th:href="@{/foreground/assets/css/amazeui.min.css}"/>
<link rel="stylesheet" th:href="@{/foreground/assets/css/app.css}"/>
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
<!--<link th:href="@{/css/jquery.contextMenu.min.css}" rel="stylesheet"/>-->
<!--<link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>-->
<link th:href="@{/css/animate.min.css}" rel="stylesheet"/>
<link th:href="@{/css/style.min.css}" rel="stylesheet"/>
<!--<link th:href="@{/css/skins.css}" rel="stylesheet"/>-->
<link th:href="@{/ruoyi/css/ry-ui.css?v=4.7.0}" rel="stylesheet"/>
<!--[if lt IE 9]>

<![endif]-->
</head>
<body gtools_scp_screen_capture_injected="true" th:class="${is_post}?'':'bg-'">
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog">
    当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/" target="_blank">升级你的浏览器</a>。
</div>
<![endif]-->
<header id="header" class="header bg-white" style="background-color: #33b0e6">


    <div class="navbar-container" style="width: 1420px">
        <a th:href="@{/system/user/toIndex}"
           style="font-size: 22px;color: #fff;line-height: 24px;position: absolute;top: 23%;left: 0;display: block;width: auto;max-width: 50%;height: 22px;margin-top: -16px;margin-left: 25px;text-decoration: none">
            <img th:src="@{/logo.png}"></a>
        <a class="header-info" style="margin: 30px" href="index.html" th:href="@{/system/user/toIndex}">首页</a>
        <a class="header-info" style="margin: 30px" href="show_knowledge.html"
           th:href="@{/system/knowledge/toKnowledgePage}">心理知识</a>
        <a class="header-info" style="margin: 30px" href="show_Consulting.html" th:href="@{/system/user/toConsulting}">心理咨询</a>
        <a class="header-info" style="margin: 30px" href="show_posts.html" th:href="@{/system/Posts/toPosts}">心理社区</a>
        <a class="header-info" style="margin: 30px" href="show_scale.html" th:href="@{/system/Scale/toScale}">心理测评</a>
        <a class="header-info" style="margin: 30px"   target="_blank" th:href="@{/index}">关于我们</a>
<!--        <a class="header-info" style="margin: 30px" onclick="resetPwd2()">关于我们</a>-->

        <!--        </div>-->
        <!--        <div class="navbar-search" onclick="">-->
        <!--            <span class="icon-search"></span>-->
        <!--            <form role="search" onsubmit="return false;">-->
        <!--                <span class="search-box">-->
        <!--                    <input type="text" id="search-inp" class="input" placeholder="搜索..." maxlength="30"-->
        <!--                           autocomplete="off"/>-->
        <!--                </span>-->
        <!--            </form>-->
        <!--        </div>-->

        <ul class="nav navbar-top-links navbar-right welcome-message" style="height: 80px;width: 200px;">
            <li class="dropdown user-menu" style=" ">
                <a href="javascript:void(0)" class="dropdown-toggle" style="" data-hover="dropdown">
                    <img th:src="(${#strings.isEmpty(user.avatar)}) ? null : @{${user.avatar}}"
                           class="user-image" style="width: 50px;height: 50px">
                    <span style="">[[${#strings.defaultString(user.userName, '-')}]]</span>
                </a>
                <ul class="dropdown-menu">
                    <li class="mt5">
                        <a th:href="@{/index}" class="menuItem noactive">
                            <i class="fa fa-user"></i> 个人中心</a>
                    </li>
<!--                    <li>-->
<!--                        <a onclick="resetPwd2()">-->
<!--                            <i class="fa fa-key"></i> 修改密码</a>-->
<!--                    </li>-->

                    <li class="divider"></li>
                    <li>
                        <a th:href="@{/logout}">
                            <i class="fa fa-sign-out"></i> 退出登录</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</header>


</body>

<!-- 全局js -->
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<!--<script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>-->
<!--<script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>-->
<script th:src="@{/js/jquery.contextMenu.min.js}"></script>
<script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script th:src="@{/ruoyi/js/ry-ui.js?v=4.7.0}"></script>
<script th:src="@{/ruoyi/js/common.js?v=4.7.0}"></script>
<!--<script th:src="@{/ruoyi/index.js?v=20201208}"></script>-->
<!--<script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script>-->
<script th:inline="javascript">
    var ctx = [[@{/}]]; var lockscreen = [[${session.lockscreen}]]; if(lockscreen){window.top.location=ctx+"lockscreen";}
</script>

<script th:inline="javascript">

    /* 用户管理-重置密码 */
    function resetPwd2() {
        // $.modal.alert("111");
        var url = ctx + 'system/user/profile/resetPwd';
        $.modal.open("重置密码", url, '770', '380');
    }

    /** 刷新时访问路径页签 */
    function applyPath(url) {
        $('a[href$="' + decodeURI(url) + '"]').click();
        if (!$('a[href$="' + url + '"]').hasClass("noactive")) {
            $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in");
        }
    }


    /* 初始密码提示 */
    if ([[${isDefaultModifyPwd}]]) {
        layer.confirm("您的密码还是初始密码，请修改密码！", {
            icon: 0,
            title: "安全提示",
            btn: ['确认', '取消'],
            offset: ['30%']
        }, function (index) {
            resetPwd();
            layer.close(index);
        });
    }

    /* 过期密码提示 */
    if ([[${isPasswordExpired}]]) {
        layer.confirm("您的密码已过期，请尽快修改密码！", {
            icon: 0,
            title: "安全提示",
            btn: ['确认', '取消'],
            offset: ['30%']
        }, function (index) {
            resetPwd();
            layer.close(index);
        });
    }
    $("[data-toggle='tooltip']").tooltip();

</script>
</html>